PrintDocument for WinForms
MeasureText(String,Boolean,Int32,Int32,Int32[],Int32) メソッド


C1.PrintDocument.6 アセンブリ > C1.Util 名前空間 > FontSubSet クラス > MeasureText メソッド : MeasureText(String,Boolean,Int32,Int32,Int32[],Int32) メソッド
The text string.
Whether using a vertical font.
Output calculated width of the text.
Output calculated height of the text.
Output calculated widths for each character.
The default width of some character.
Measure text for this font subset.
シンタックス
'宣言
 
Public Overloads Function MeasureText( _
   ByVal text As System.String, _
   ByVal vertical As System.Boolean, _
   ByRef width As System.Integer, _
   ByRef height As System.Integer, _
   ByRef charWidths() As System.Integer, _
   Optional ByVal defaultWidth As System.Integer _
) As System.Integer
'使用法
 
Dim instance As FontSubSet
Dim text As System.String
Dim vertical As System.Boolean
Dim width As System.Integer
Dim height As System.Integer
Dim charWidths() As System.Integer
Dim defaultWidth As System.Integer
Dim value As System.Integer
 
value = instance.MeasureText(text, vertical, width, height, charWidths, defaultWidth)
public System.int MeasureText( 
   System.string text,
   System.bool vertical,
   out System.int width,
   out System.int height,
   out System.int[] charWidths,
   System.int defaultWidth
)

パラメータ

text
The text string.
vertical
Whether using a vertical font.
width
Output calculated width of the text.
height
Output calculated height of the text.
charWidths
Output calculated widths for each character.
defaultWidth
The default width of some character.

戻り値の型

If calculated then return true, otherwise false.
参照

FontSubSet クラス
FontSubSet メンバ
オーバーロード一覧